//
//  CommonToolClass.h
//  VideoTeleprompter
//
//  Created by Duncan on 2021/4/19.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CommonToolClass : NSObject

/// 秒转时间
+ (NSString *)secondsForDay:(NSInteger)count;
+ (NSString *)timeVwStrWithSecTime:(NSInteger)secTime;
#pragma mark ------- 定时器 -------
+ (instancetype)ps_scheduledTimerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id __nullable)userInfo repeats:(BOOL)yesOrNo;

@property (nonatomic, strong) NSTimer * __nullable timer;

- (void)ps_timerInvalidate;

#pragma mark ------- 逻辑判断方法 -------

/// 判断手机号
+ (BOOL)judgePhoenString:(NSString *)phone;
/// 判断密码
+ (BOOL)judgePasswordString:(NSString *)password;
/// 判断验证码
+ (BOOL)judgeCodeString:(NSString *)code;
/// 判断是否绑定手机号，没有则提示
+ (BOOL)isBindMobilePhoneAndShowTips:(NSString *)tips;

@end

NS_ASSUME_NONNULL_END
